package com.designpattern.softwaredesignpatternstudy.pdai.singleton;

/**
 * @author: Aster
 * @note: 静态内部类
 * @create: 2025-07-16 15:17
 **/
public class Singleton05 {

    private Singleton05() {
    }

    private static class SingletonHolder {
        private static final Singleton05 INSTANCE = new Singleton05();
    }

    public static Singleton05 getInstance() {
        return SingletonHolder.INSTANCE;
    }
}
